<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>
    这里是教师端首页
</body>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script type="text/javascript">
    /**
     * 判断是否登录后进入首页
     */
    $.ajax({
        url:"/getLogin.pd",
        type:"GET",
        dataType:"text",
        success:function(msg){
            if(msg.indexOf("true")>-1){
                window.location.href="/login.teacher";
            }
        },
        error:function(){
            openTitle("异常提示","请求失败，请与客服联系");
        }
    });
</script>
</html>